package org.song.model.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.type.Alias;

import java.util.Date;

@ApiModel("用户")
@AllArgsConstructor
@NoArgsConstructor
@Data
@Builder
@Alias(value = "User")
public class UserEntity {

    @ApiModelProperty(value = "主键" , notes = "主键")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    @ApiModelProperty(value = "昵称" , notes = "昵称")
    private String nickname;

    @ApiModelProperty(value = "用户名" , notes = "用户名")
    private String username;

    @ApiModelProperty(value = "密码" , notes = "密码")
    private String password;

    @ApiModelProperty(value = "邮件" , notes = "邮件")
    private String email;

    @ApiModelProperty(value = "头像" , notes = "头像")
    private String avatar;

    @ApiModelProperty(value = "创建时间" , notes = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间" , notes = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "上一次登录IP" , notes = "上一次登录IP")
    private String lastLoginIp;

    @ApiModelProperty(value = "禁言状态" , notes = "禁用状态")
    private Integer dataStatus;

}
